package com.company;

import java.util.Scanner;

public class Main {

    public static void printsum() {
        int sum = 0;
        for (int i = 1; i <= 50; i++) {
            sum += i;
            if (sum > 200) {
                for (int j = 1; j <= i; j++) {
                    System.out.print(j);
                    if (j != i) {
                        System.out.print("+");
                    }
                }
                System.out.println("=" + sum);
                break;
            }
        }
    }

    public static void sumDouble() {
        int sum = 0;
        for (int i = 1; i <= 10; i++) {
            if (i % 2 != 0) {
                continue;
            }
            sum += i;
        }
        System.out.println(sum);
    }

    public static void printten() {
        int i = 1;
        do {
            System.out.print(i + ",");
            i++;
        } while (i <= 10);
        System.out.println();
        i = 1;

        while (i <= 10) {
            System.out.print(i + ",");
            i++;
        }
        System.out.println();
        i = 1;
        for (; i <= 10; i++) {
            System.out.print(i + ",");
        }
    }

    public static void source(int[] a) {
        int sum = 0;
        double percent;
        for (int i = 0; i < 5; i++) {
            if (a[i] < 60) {
                sum++;
            }
        }
        percent = (5 - sum) / 5.0;
        System.out.println("不及格人数为" + sum + ",及格率为：" + percent * 100 + "%!");
    }

    public static void printsquare(int i) {
        for (int k = 0; k<i; k++) {
           for(int j=1;j<i-k;j++){
               System.out.print(" ");
           }
           for(int l=0;l<=k;l++){
               System.out.print("*");
           }
            System.out.println();
        }
    }

    public static void printMul(){
        for(int i=1;i<=9;i++){
            for(int j=1;j<=9;j++){
                if(i>=j) {
                    System.out.printf(i + "*" + j + "=" + i * j+"\t");
                }
            }
            System.out.println();
        }
    }

    public static void main(String[] args) {
        // write your code here
//       printsum();
        sumDouble();
//        printten();
//        Scanner input=new Scanner(System.in);
//        int a[]=new int[5];
//        for(int i=0;i<5;i++){
//            a[i]=input.nextInt();
//        }
//        source(a);
//    }
//        printsquare(5);
      printMul();
    }
}
